package net.akcegaraz.tipleague.client.view;

import net.akcegaraz.tipleague.client.presenter.HelloPresenter.Display;

import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.HorizontalPanel;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.Widget;

public class HelloView extends Composite implements Display {
    private final Label label;

    public HelloView() {
	HorizontalPanel panel = new HorizontalPanel();
	initWidget(panel);

	label = new Label();

	panel.add(label);
    }

    public Widget asWidget() {
	return this;
    }

    public void hello(String text) {
	label.setText(text);

    }

}
